package com.hcb.micro.dao.interfaceClass;

import java.util.List;
import java.util.Map;

import com.hcb.micro.dto.Product;
import com.hcb.micro.dto.Union;

public interface ProductMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKeyWithBLOBs(Product record);

    int updateByPrimaryKey(Product record);
    
    List<Product> selectByPara(Map<String, Object> para);
    
    int insertProductLog(Map<String, Object> para);
    
    List<Map<String, Object>> selectProLogByPara(Map<String, Object> para);
    
    Map<String, Object> selectProLogById(Integer id);
    
    int delProPriLog(Integer id);
    
    int updateProPriLog(Map<String,Object> map);
    
    int delProPriLogByProductId(Integer productId);
    
    List<Map<String, Object>>  selectToApply(Map<String,Object> para);
    
    int updateById(Map<String, Object> para);
    
}